package com.school.util;

import java.io.Serializable;
import java.util.List;


public class Result<T> implements Serializable{

	private int status=1; //1表示成功，2表示失败
	
	private String message=""; //提示信息
	
	private T data;//保存数据
	
	private List<T> list=null;//保存集合数据
	
	private long count;
	
	
	@Override
	public String toString() {
		return "Result [status=" + status + ", message=" + message + ", data=" + data + ", list=" + list + ", count="
				+ count + "]";
	}

	public Result() {
		// TODO Auto-generated constructor stub
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public T getData() {
		return data;
	}

	public void setData(T data) {
		this.data = data;
	}

	





	public Result(int status, String message, T data, List<T> list, long count) {
		super();
		this.status = status;
		this.message = message;
		this.data = data;
		this.list = list;
		this.count = count;
	}

	public List<T> getList() {
		return list;
	}

	public void setList(List<T> list) {
		this.list = list;
	}

	public long getCount() {
		return count;
	}

	public void setCount(long count) {
		this.count = count;
	}

	
	
	
	
}
